package decoratorPattern;


    /**
     * @program: course
     * @author: lsn
     * @create: 2024-04-18 16:29
     * @description: 抽象装饰器类   角色：装饰
     *
     */
    public class NotifierDecorator implements Notifier {
        private Notifier notifier;

        public NotifierDecorator(Notifier notifier) {
            this.notifier = notifier;
        }

        @Override
        public void send(String message) {
            notifier.send(message);
        }
    }

